<!-- @Author: Yu_Bo -->
<template>
	<view class="warehouse">
		<u-popup v-model="show" mode="center" :mask-close-able="false">
			<view class="main">
				<view class="main_text" @click="recordsBtn">
					<image src="@/static/images/img/warehouse_icon_left.png" mode=""></image>
					<text>入库</text>
				</view>
				<view class="main_text" @click="outboundBtn">
					<image src="@/static/images/img/warehouse_icon_right.png" mode=""></image>
					<text>出库</text>
				</view>
			</view>
			<view class="close">
				<image @click="closeBtn" src="@/static/images/img/close.png" mode=""></image>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		components: {},
		props: {},
		data() {
			return{
				show: false
			}
		},
		computed: {},
		mounted() {},
		methods: {
			// 打开
			openBtn() {
				this.show = true
			},
			// 关闭
			closeBtn() {
				this.show = false
			},
			// 入库
			recordsBtn() {
				this.closeBtn()
				this.$navTo('/pagesWo/records/index')
			},
			// 出库
			outboundBtn() {
				this.closeBtn()
				this.$navTo('/pagesWo/outbound/index')
			},
		},
	}
</script>

<style lang='scss' scoped>
	.warehouse {
		.main {
			width: 600rpx;
			height: 320rpx;
			border-radius: 40rpx;
			background: linear-gradient(to bottom, #6FECFF, #F5FEFF, #FFFFFF);
			display: flex;
			align-items: center;
			justify-content: space-between;
			
			.main_text {
				width: 50%;
				display: flex;
				align-items: center;
				flex-direction: column;
				justify-content: center;
				
				image {
					display: block;
					width: 130rpx;
					height: 130rpx;
				}
				
				text {
					padding-top: 20rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					font-size: 32rpx;
					color: #222222;
				}
			}
		}
		
		.close {
			width: 100%;
			padding-top: 120rpx;
			
			image {
				display: block;
				width: 80rpx;
				height: 80rpx;
				margin: auto;
			}
		}
	}
</style>